/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_string_ } from "../models/BaseResponse_string_";

import type { CancelablePromise } from "../core/CancelablePromise";
import { OpenAPI } from "../core/OpenAPI";
import { request as __request } from "../core/request";

export class FileControllerService {
  /**
   * uploadFile
   * @param file 要上传的文件
   * @returns BaseResponse_string_ OK
   * @throws ApiError
   */
  public static uploadFileUsingPost(
    formData: FormData
  ): CancelablePromise<BaseResponse_string_> {
    return __request(OpenAPI, {
      method: "POST",
      url: "/api/file/upload",
      body: formData,
      mediaType: "multipart/form-data",
      errors: {
        /* ... */
      },
    });
  }
}
